package com.laivi.basic.util;

import com.laivi.basic.model.Property;

/**
 * @author laivi.zhu@gmail.com
 * @date 2014-7-4
 * description:
 */
public class PropertyUtil {
	private static Property prop=new Property("/basic.properties");
	
	public static String get(String key){
		return prop.get(key);
	}
	
	public static String get(String key,String defaultValue){
		return prop.get(key, defaultValue);
	}
	
	public static void add(String key,String value){
		prop.add(key, value);
	}
	
	public static void addAndSave(String key,String value){
		prop.addAndSave(key, value);
	}
	
	public static void remove(String key){
		prop.remove(key);
	}
	
	public static void removeAndSave(String key){
		prop.removeAndSave(key);
	}
}
